<template>
    <svg class="svg-icon" aria-hidden="true">
        <use :xlink:href="`#${prefix}-${name}`" />
    </svg>
</template>

<script lang="ts" setup>
const props=defineProps({
    prefix: {
        type: String,
        default: 'icon',
    },
    name: {
        type: String,
        required: true
    },
    color: {
        type: String,
        default: '#333',
    },
})
</script>

<style scoped>
.svg-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}
</style>
